package designpattern.strategy.practice;

/**
 * TODO:类描述
 *
 * @className: FullReductionStrategy
 * @packageName: designpattern.strategy.practice
 * @author: Zhuhj
 * @version: V1.0
 * @date: 2021/4/18 19:00
 */
public class FullReductionStrategy implements IPriceStrategy{
    @Override
    public double compute(double originPrice) {
        double retPrice = 0;
        if(originPrice >= 100){
            System.out.println("已经满100 减40");
            retPrice = originPrice - 40;
        }else{
            System.out.println("没有满减");
            retPrice = originPrice;
        }
        return retPrice;
    }
}
